/**
 * Created by chenkeliang on 2017/3/8.
 */
import React from 'react'
import {render} from 'react-dom';
import { AppContainer } from 'react-hot-loader'
import Main from './Main'

require('antd/dist/antd.css');

render(
    <AppContainer>
        <Main></Main>
    </AppContainer>,
    document.getElementById('root'))

if(module.hot){
    module.hot.accept('./Main',()=>{
        const NextMain=require('./Main').default;
        render(
            <AppContainer>
                <NextMain/>
            </AppContainer>,
            document.getElementById('root')
        )
    })
}



